/**
 * @Author: 陈瑞鹏
 * @Date:   2022-12-16 11:42:12
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-12-16 11:42:44
 */

export class TweenPool {

    private _tweens: cc.Tween<any>[] = [];

    add(tween: cc.Tween<any>) {
        this._tweens.push(tween);
    }

    clear() {
        this._tweens?.forEach(v => v.stop());
        this._tweens = [];
    }

}